package controller;


import entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;

@Controller
@RequestMapping("/userarr")
public class UserController_arr {
    @PostMapping("hobby")
    @ResponseBody
    public String addHobby(@RequestParam ArrayList<String> hobby){
        System.out.println(hobby);
        return "success";
    }

    @PostMapping("register")
    @ResponseBody
    public String register(@RequestBody User user){
        System.out.println(user);
        return "success";
    }
}
